package com.sync.syncmasterdata.product.pojo.crm;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * crm 产品对象(新)
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InventoryForCrm {

    /**
     * 货号
     */
    @JsonProperty(value = "new_add_code")
    private String new_add_code;

    /**
     * 可用量 默认0。00
     */
    @JsonProperty(value = "new_available")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private double new_available;

    /**
     * 品牌
     */
    @JsonProperty(value = "new_brand")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_brand;

    /**
     * 产品编码（ERP）
     */
    @JsonProperty(value = "new_code")
    private String new_code;

    /**
     * 停用日期
     */
    @JsonProperty(value = "new_end_date")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_end_date;


    /**
     * 是否常规备货 需要转换
     */
    @JsonProperty(value = "new_isnormal")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean new_isnormal;

    /**
     * 基本单位
     */
    @JsonProperty(value = "new_main_measure@odata.bind",access = JsonProperty.Access.READ_ONLY)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_main_measure;

    /**
     * 修改时间
     */
    @JsonProperty(value = "new_modify_date")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_modify_date;

    /**
     * 产品名称
     */
    @JsonProperty(value = "new_name")
    private String new_name;

    /**
     * 通用名称
     */
    @JsonProperty(value = "new_currency_name")
    private String new_currency_name;

    /**
     * 销售单位
     */
    @JsonProperty(value = "new_sale_measure@odata.bind", access = JsonProperty.Access.READ_ONLY)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_sale_measure;
    /**
     * 费率13
     */
    @JsonProperty(value = "new_saunit_rate")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private float new_saunit_rate;
    /**
     * 产品分类
     */
    @JsonProperty(value = "new_sort_code")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_sort_code;
    /**
     * 规格型号
     */
    @JsonProperty(value = "new_specs")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_specs;
    /**
     * 默认单价
     */
    @JsonProperty(value = "new_standard_price")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Double new_standard_price=0.00;

    /**
     * 新增时间
     */
    @JsonProperty(value = "new_start_date")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_start_date;

    /**
     * 税率 小数
     */
    @JsonProperty(value = "new_taxrate")
    private Double new_taxrate;

    /**
     * 仓库名称 中文
     */
    @JsonProperty(value = "new_warehouse_type")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String new_warehouse_type;

    /**
     * 0=正常 1=停用
     */
    @JsonProperty(value = "statecode")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private int statecode;

    /**
     * 是否国产、进口 国产0 进口1
     */
    @JsonProperty(value = "new_domestic_or_imported")
    private Integer new_domestic_or_imported;
    /**
     * 业务类型
     */
    @JsonProperty(value="new_business_type")
    private String new_business_type;
    /**
     * 产品线
     */
    @JsonProperty(value="new_line")
    private String new_line;
    /**
     * 产品组
     */
    @JsonProperty(value="new_group")
    private String new_group;
    /**
     * 项目名称
     */
    @JsonProperty(value="new_project")
    private String new_project;
    /**
     * 生产企业
     */
    @JsonProperty(value="new_enterprise")
    private String new_enterprise;
}
